package com.msb.order.controller;

import com.msb.order.feignClient.UserFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: microservices
 * @ClassName FeignTestIController
 * @description:
 * @author: slfang
 * @create: 2023-12-22 16:26
 * @Version 1.0
 **/
@RestController
@Slf4j
public class FeignTestIController {

    @Autowired
    private UserFeignClient userFeignClient;

    @GetMapping("/feign/getUserInfo")
    public String getUserInfo(){
        log.info("getUserInfo::Start");
        String userName = userFeignClient.getUserName(12);
        log.info("获取用户信息：{}" , userName);
        return "测试ok"+userName;
    }

}
